[Testing] Disable geoip downloader#25248
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Disable database updates via an Elasticsearch property `ingest.geoip.downloader.enabled: false`. This will cause Elasticsearch to use the circa 2019 maxmind database version that is embedded. This would work for now, but the embedded database will be removed in 8.x IIUC. This prevents our golden file tests from failing everytime the database changes geo or asn values. It also prevents race conditions in tests that might run before the database has been updated or in cases where the downloader service is unavailable. Closes: elastic#25159
fad98c3 to
37ed68f
Compare
|
The generator tests are failing. I opened a separate fix for them in #25251. |
|
Pinging @elastic/integrations (Team:Integrations) |
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
|
Pinging @elastic/agent (Team:Agent) |
|
This fix needs backported to 7.x and 7.13. AFAIK neither of those branches have had their golden files updated to work on the new geoip database so those PRs should be much smaller. |
|
+1 to this, do you know how often the actual fields change? or perhaps that doesn't happen at all? I'm wondering if we need a way to detect that situation to update mappings |
|
Field mapping changes would only change when Elasticsearch modifies the |
|
run tests |
What does this PR do?
Disable database updates via an Elasticsearch property
ingest.geoip.downloader.enabled: false. This will cause Elasticsearch to use the circa 2019 maxmind database version that is embedded. This would work for now, but the embedded database will be removed in 8.x IIUC.Closes: #25159
Why is it important?
This prevents our golden file tests from failing everytime the database changes geo or asn values. It also prevents race conditions in tests that might run before the database has been updated or in cases where the downloader service is unavailable.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have added an entry inCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues